package com.lu.entity;

public class NewsUsers {
    private int uid;
    private String uname;
    private String upwd;

    public NewsUsers() {
    }

    public NewsUsers(int uid, String uname, String upwd) {
        this.uid = uid;
        this.uname = uname;
        this.upwd = upwd;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj==null || !(obj instanceof NewsUsers)){
            return false;
        }
        NewsUsers newsUsers = (NewsUsers) obj;
        return newsUsers.getUname().equals(this.getUname()) && newsUsers.getUid()==this.getUid();
    }
}
